// pages/user/userCenter/comps/userFunc/userFunc.js
Component({
    /**
     * 组件的属性列表
     */
    properties: {
        userInfo: Object
    },

    /**
     * 组件的初始数据
     */
    data: {

    },

    /**
     * 组件的方法列表
     */
    methods: {
        goWhiteList: function() {
            wx.navigateTo({
                url: '/pages/user/whiteList/whiteList'
            })
        },
        myCard: function() {
            wx.navigateTo({
                url: '/pages/user/userCard/userCard'
            })
        },
        goAddressList: function() {
            wx.navigateTo({
                url: '/pages/user/address/addressList/addressList?type=readOnly'
            })
        },
        goMyConcat: function() {
            wx.navigateTo({
                url: '/pages/user/concat/concat'
            })
        },
        goAbout: function() {
            wx.navigateTo({
                url: '/pages/about/about'
            })
        },
        goEmpowerTimes: function() {
            wx.navigateTo({
                url: '/pages/user/empower/empowerTimes/empowerTimes'
            })
        },
        goEmpowerList: function() {
            wx.navigateTo({
                url: '/pages/user/empower/empowerList/empowerList'
            })
        },
        goUpgradeApply: function() {
            wx.navigateTo({
                url: '/pages/user/empower/upgradeApply/upgradeApply'
            })
        },
        invite: function() {
            wx.navigateTo({
                url: '/pages/share/share'
            })
        },
        goMyArtical: function() {
            wx.navigateTo({
                url: '/pages/socialSystem/myArtical/myArtical'
            })
        },
        userBrowse: function() {
            wx.navigateTo({
                url: '/pages/user/user_browse/user_browse'
            })
        },
        myCompany: function() {
            wx.navigateTo({
                url: '/pages/company/company'
            })
        },
        fodder: function() {
            wx.navigateTo({
                url: '/pages/groundPush/groundPsuh_list/groundPsuh_list'
            })
        },
        goMyZeroBuy: function() {
            wx.navigateTo({
                url: '/pages/zeroBuy/my/my'
            })
        },
        goCompany: function() {
            wx.navigateTo({
                url: '/pages/company/company'
            })
        },
        goMyData: function(e) {
            wx.navigateTo({
                url: '/pages/user/team/teamList/teamList'
            })
        },
        goShopExclusive: function() {
            wx.navigateTo({
                url: '/pages/shopExclusive/orderList/orderList'
            })
        },
        goCustomizeImg: function() {
            wx.navigateTo({
                url: '/pages/shopManager/customizeImg/customizeImg'
            })
        },
        goShopOrder: function() {
            wx.navigateTo({
                url: '/pages/order/virtualOrder/orderList/orderList'
            })
        },
        goAbout: function() {
            wx.navigateTo({
                url: '/pages/about/about'
            })
        },
        goInviter: function() {
            if (this.data.userInfo.parent_id == 0) {
                wx.showToast({
                    title: '暂无邀请人',
                    icon: 'none',
                    duration: 2000
                })
                return
            }
            this.triggerEvent('goInviter')
        }
    }
})